<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/view/common/include.jsp" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-lg-8">
            <br/>
            <div class="panel panel-default">
                <div class="panel-body">
                    <a type="button" href="${ctx}/user/get" class="btn btn-default">添加</a>
                </div>
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>姓名</th>
                        <th>年龄</th>
                        <th>电话</th>
                        <th>性别</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach var="user" items="${userList}">
                        <tr>
                            <td>${user.uuid}</td>
                            <td>${user.name}</td>
                            <td>${user.phone}</td>
                            <td>${user.sex}</td>
                            <td>
                                <a href="${ctx}/user/get?userId=${user.uuid}" title="编辑">
                                    <i class="glyphicon glyphicon-edit"></i>
                                </a>
                                <a href="${ctx}/user/delete/${user.uuid}" title="删除">
                                    <i class="glyphicon glyphicon-remove"></i>
                                </a>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>
